﻿using System;
using System.Collections.Generic;
namespace DomainSerializer.Domains
{
	using System.Runtime.Serialization;

	[DataContract]
	public class Order : IDomain
	{
		public enum Status { Created, Made, Activated, InProduction, AtWarehouse, Payed };

		[DataMember]
		public string ID { get; set; }

		[DataMember]
		public string UserLogin { get; set; }

		[DataMember]
		public List<Good> OrderList { get; set; }

		[DataMember]
		public DateTime OrderDate { get; set; }

		[DataMember]
		public Status OrderStatus { get; set; }

		[DataMember]
		public double TotalCost { get; set; }

		[DataMember]
		public bool Info { get; set; }
	}
}
